{#
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at https://mozilla.org/MPL/2.0/.
#}

{% extends "base-article.html" %}

{% block page_title_suffix %}{% endblock %}

{% block body_class %}mzp-t-mozilla{% endblock %}

{% set navigation_bar = [
    ('https://foundation.mozilla.org/', 'index', 'Mozilla Foundation'),
    ('https://foundation.mozilla.org/about/', 'about', 'About the Foundation'),
    (url('foundation.licensing'), 'licensing', 'Licensing & Trademarks'),
    ('https://foundation.mozilla.org/about/public-records/', 'documents', 'Public Documents'),
    (url('careers.home'), 'careers', 'Careers'),
] %}

{% set programs = [
  ('https://foundation.mozilla.org/initiatives/', 'issues', 'Key Internet Issues'),
  ('https://foundation.mozilla.org/', 'advocacy', 'Advocacy'),
  ('https://foundation.mozilla.org/', 'leadership-network', 'Leadership Network')
] %}

{% block side_nav %}
  {{ sidemenu_lists([navigation_bar, programs], body_id) }}
{% endblock %}

{% block article %}
  <header>
    <h1 class="mzp-c-article-title">Mozilla Foundation</h1>
    {% block article_header %}
      <h2>{{ self.article_title() }}</h2>
    {% endblock %}
  </header>
  {% block article_content %}{% endblock %}
{% endblock %}

{% block email_form %}
  <div class="mzp-l-content">
    <aside class="mzp-c-newsletter t-love">
      <div class="mzp-c-newsletter-image">
        <img src="{{ static('img/newsletter/love-news.svg') }}" alt="" height="172" width="200">
      </div>

      <div class="newsletter-content">
        {% if LANG.startswith('en-') %}
          {{ email_newsletter_form(newsletters='mozilla-foundation', title='Sign up. Read up.<br> Make a difference.'|safe, desc='Get the Mozilla newsletter and help us keep the Web free and open.', button_class='button-red') }}
        {% else %}
          {{ email_newsletter_form(button_class='button-red') }}
        {% endif %}
      </div>
    </aside>
  </div>
{% endblock %}
